#!/usr/bin/python3
# -*- coding:UTF-8 -*-

#作品名称：冰枫蓝叶聊天女仆 - 时间库
#作者：冰枫火灵X
#许可证：GNU LGPL v3 or later

import time
import sys

day = {
    'Monday':'星期一',
    'Tuesday':'星期二',
    'Wednesday':'星期三',
    'Thursday':'星期四',
    'Friday':'星期五',
    'Saturday':'星期六',
    'Sunday':'星期日'
}
def fulltt():
    t=time.strftime('%Yyear%mmonth%dday-%Hhour%Mminute%Ssecond-%A',time.localtime())
    dayen=time.strftime('%A',time.localtime())
    t=t.replace(dayen,day[dayen])
    t=t.replace('year','年').replace('month','月').replace('day','日').replace('hour','时').replace('minute','分').replace('second','秒').replace('-','，')
    return t

def tt():
    sj = time.strftime("%HHour%MMinute%SSecond",time.localtime())
    sj = sj.replace('Hour','时').replace('Minute','分').replace('Second','秒')
    return sj

def week():
    weekx = time.strftime("%A",time.localtime())
    weekx = day[weekx]
    return weekx

if __name__ == '__main__':
    try:
        if sys.argv[1] == '--fulltime':
            print(fulltt())
        elif sys.argv[1] == '--time':
            print(tt())
        elif sys.argv[1] == '--week':
            print(week())
    except IndexError as try2:
        print("请输入选项<--fulltime/--time/--week>.")
    else:
        pass
    finally:
        sys.exit(0)
